<?php
/*Problem Domain
To create a database access layer for Technology class
*/

/*
TechnologyDAO is an interface
interp. represents the database access layer interface(functionality) for Technology class
*/

interface TechnologyDAO
{
	/*Technology -> boolean
	purpose. To save or update a given Technology and return true on success , false otherwise*/
	public function saveOrUpdate($Technology);

	/*Technology -> boolean
	purpose. To remove an existing Technology and return true on success , false otherwise*/
	public function removeTech($tech_id);


	/*void -> ListUserType
	purpose. produces the entire list of Technologies*/
	public function listTechnology();

	/*int -> String
	purpose. produces the Technology name for the give Technology ID*/
	public function getNameFromId($id);

	public function getIdFromName($tech_name);
}
?>
